#include <stdio.h>

int main()
{
    char chlist[100];
    unsigned int uppercase = 0, lowercase = 0, spaces = 0, numbers = 0, others = 0;
    char *pch = chlist;
    while ((*pch = getchar()) != '\n')pch ++;
    *pch = 0;
    pch = chlist;
    while (*pch)
    {
        if(*pch >= 'A' && *pch <= 'Z')uppercase++;
        else if(*pch >= 'a' && *pch <= 'z')lowercase++;
        else if(*pch == ' ')spaces++;
        else if(*pch >= '0' && *pch <= '9')numbers++;
        else others++;
        pch++;
    }
    printf("uppercase:%d\n", uppercase);
    printf("lowercase:%d\n", lowercase);
    printf("spaces:%d\n", spaces);
    printf("numbers:%d\n", numbers);
    printf("others:%d\n", others);
    
    return 0;
}